import {createRouter, createWebHistory,RouteRecordRaw} from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path:'/Register',
        component:()=>import('../view/User/Register.vue')
    },{
        path:'/Ulogin',
        component:()=>import('../view/User/Ulogin.vue')
    },
    {
        path:'/ShowUser',
        component:()=>import('../view/User/ShowUser.vue')
    },
    {
        path:'/UserLogin',
        component:()=>import('../view/UserRole/UserLogin.vue')
    },
    {
        path:'/AddUser',
        component:()=>import('../view/UserRole/AddUser.vue')
    },
    {
        path:'/ShowUserRole',
        component:()=>import('../view/UserRole/ShowUser.vue')
    },
    {
        path:'/ShowUserInfo',
        component:()=>import('../view/UserRole/ShowUserInfo.vue')
    },
    {
        path:'/FinanLogin',
        component:()=>import('../view/Finan/FinanLogin.vue')
    },
    {
        path:'/UserFinanAdd',
        component:()=>import('../view/Finan/UserFinanAdd.vue')
    },
    {
        path:'/AddUserFinan',
        component:()=>import('../view/Finan/AddUser.vue')
    },
    {
        path:'/AdminFinan',
        component:()=>import('../view/Finan/AdminFinan.vue')
    },
]
const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router
